package com.ahy231.controller;

import com.ahy231.dto.Result;
import com.ahy231.dto.ResultCode;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

/**
 * @author ahy231
 * @date 2021/7/26 17:08
 * @description
 */
@ApiIgnore
@RestController
@RequestMapping("/unAuth")
public class UnAuthController {

    @GetMapping("/{message}")
    public Result unauthorized(@PathVariable String message) {
        return new Result(ResultCode.REFUSE_REQUEST, message);
    }
}
